package com.ming.springcloud.student.service;

import java.util.List;
import java.util.Optional;
import com.ming.springcloud.student.pojo.StudentEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;


public interface IStudentService {
	/**
	 * 分页查询所有服务器信息
	 * 
	 * @return
	 */
	Page<StudentEntity> findAllServers(Pageable pageable);

	/**
	 * 删除
	 * 
	 * @param id
	 */
	public void delete(Integer id);

	/**
	 * 新增
	 * 
	 * @param student
	 */
	public void save(StudentEntity student);

	/**
	 * 根据id获取
	 * 
	 * @param id
	 * @return
	 */
	public Optional<StudentEntity> findUserById(Integer id);

	/**
	 * 修改
	 * 
	 * @param student
	 */

	public void edit(StudentEntity student);

	/**
	 * 根据姓名模糊查询
	 * 
	 * @param name
	 * @return
	 */
	List<StudentEntity> findServerByNameLike(String name);

	/**
	 * 查询所有
	 *
	 * @param
	 * @return
	 */
	List<StudentEntity> findAll();
}
